package com.lz.autotest.project.testmanage.autoTest.service.thread;

import com.lz.autotest.common.constant.ThreadTypeConstants;

/**
 * @author: X
 * @date: Created in 2023/6/30 16:34
 * @Description: 构建执行任务的线程
 */
public class XtsThreadFactory {

    public static Thread configure(XtsThreadDetail xtsThreadDetail) {

        if (xtsThreadDetail.getThreadContext().getThreadType().equals(ThreadTypeConstants.AUTO_TEST_ENTRY)) {
            return new AutoTestXtsThreadByEntry(xtsThreadDetail.getThreadContext().getThreadName(),
                    xtsThreadDetail.getThreadContext().getSstInfs(),
                    xtsThreadDetail.getThreadContext().getListeners(),
                    xtsThreadDetail.getThreadContext().getCycleNumber(),
                    xtsThreadDetail.getThreadContext().getTsstAutotestMenu());
        }
        return null;
    }

}
